"""Blogproject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from bk import views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', views.title),
    path('nr/<int:nid>/', views.nr, name='bk_nr'),
    path('title_delete/', views.title_delete),
    path('title_add/', views.title_add),
    path('title_edit/<int:title_id>/', views.title_edit, name='title_edit'),
    path('nr_add/<int:title_id>/', views.nr_add),
    path('nr_delete/', views.nr_delete),
    path('login/', views.login),
    path('register/', views.register),
    path('logout/', views.logout),
    path('nr_edit/<int:nr_id>/', views.nr_edit, name='nr_edit'),
    path('ok/', views.register_ok),
    path('image/code/', views.image_code),
    path('login_form/', views.login_form),

]
